projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
052962a
)
demo: fix memleak
author
Benjamin Otte
<otte@redhat.com>
Fri, 7 Aug 2020 00:53:21 +0000
(
02:53
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 7 Aug 2020 00:53:21 +0000
(
02:53
+0200)
demos/gtk-demo/listview_words.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/listview_words.c
b/demos/gtk-demo/listview_words.c
index 350383a4da75193549108e0a6766786dec292f82..1687f4c48e9c56bd3d9814f13615a82c196c9332 100644
(file)
--- a/
demos/gtk-demo/listview_words.c
+++ b/
demos/gtk-demo/listview_words.c
@@
-177,6
+177,7
@@
do_listview_words (GtkWidget *do_widget)
stringlist = gtk_string_list_new ((const char **) words);
g_strfreev (words);
}
+ g_object_unref (file);
filter = gtk_string_filter_new (gtk_property_expression_new (GTK_TYPE_STRING_OBJECT, NULL, "string"));
filter_model = gtk_filter_list_model_new (G_LIST_MODEL (stringlist), filter);